package com.mszlu.blog.controller;

import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.utils.UserThreadLocal;
import com.mszlu.blog.vo.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Package: com.mszlu.blog.controller
 * @ClassName: TestController
 * @Author: 陈威
 * @CreateTime: 2021/9/1 22:18
 * @Description:
 */
@RestController
@RequestMapping("test")
public class TestController {


    @RequestMapping
    public Result test(){
        SysUser sysUser = UserThreadLocal.get();
        System.out.println(sysUser);
        return Result.success(null);
    }
}